<?php
/**
 * Created by PhpStorm.
 * User: zhanglu
 * Date: 2019/2/19
 * Time: 1:19 PM
 */
$per_url = Yii::$app->params['imgurl'];
$this->registerCss("
    body{
       padding:0px;
       margin:0px;
       background:#f1f1f8;
    }
    .item-list ul{padding:0px;margin:0px}
    .item-list ul li{
        margin-top:5px;
        list-style:none;
        padding:10px 15px;
        border-bottom:1px solid #f1f1f8;
        color:#fff;
        background: #333;
        border-radius: 6px 6px 20px 6px;
    }
    .item-list a{text-decoration: none;}
");
$this->title = '我的收藏';
?>

<div class="page-book-catalog">
    <header id="myheader" class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #333;"></a>
        <a href="#menu" class="mui-icon mui-action-menu mui-icon-bars mui-pull-right" style="color: #333;"></a>
        <h1 class="mui-title"><?=$this->title?></h1>
    </header>

    <div class="sec-one" style="margin:60px 15px 15px 15px;">
        <div class="item-list">
            <ul>
                <?php foreach($list as $k=>$v){ ?>
                    <a href="/book-item/<?=$v['bookInfo']['number']?>.html">
                        <li class="wow slideInRight" data-wow-duration="0.5s"  data-wow-delay="<?=$k*0.05 . 's'?>">
                            <div style="display: flex;">
                                <div style="flex: 1">
                                    <?=$v['bookInfo']['front_title']?>
                                </div>
                                <div style="flex: 1;text-align: right;font-size: 12px">
                                    <?php echo \common\components\Tools::wordTime($v['create_at'])?>
                                </div>
                            </div>
                        </li>
                    </a>
                <?php }?>
            </ul>
        </div>
    </div>

</div>
